import { UPDATE_PROJECTS } from '../actions'

const projects = (state = [], action) => {
  switch (action.type) {
    case UPDATE_PROJECTS:
      return [...action.payload]
    default:
      return state
  }
}

export default projects